<template>
  <div>
    <UserBigItem v-for="(item, index) in userList" :key="index" :data="item" />
    <view class="loading-text">
      {{ finish ? '没有更多数据~' : '拼命加载中...' }}
    </view>
  </div>
</template>

<script setup lang="ts">
import type { UserItem } from '@/types/index/home'
import UserBigItem from './userBigItem.vue'
defineProps<{ userList: UserItem[]; finish: boolean }>()
</script>

<style lang="scss" scoped>
// 加载提示文字
.loading-text {
  text-align: center;
  font-size: 28rpx;
  color: #666;
  padding: 20rpx 0;
  margin-bottom: 20rpx;
}
</style>
